﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace weighing
{

    /// <summary>
    /// 二维码的内容类型
    /// </summary>
    public enum QrContentType
    {
        /// <summary>
        /// 磅单
        /// </summary>
        Number,

        /// <summary>
        /// 磅单，截图地址
        /// </summary>
        ImageUrl,

        /// <summary>
        /// 变量参数
        /// </summary>
        Variables,

        /// <summary>
        /// 指定的URL + 变量参数 + 固定的参数
        /// </summary>
        UrlAndVariables
    }

    /// <summary>
    /// 二维码的规则和内容
    /// </summary>
    public class QrContentVo
    {
        private QrContentType qrContentType;
        private string url="";
        private string otherParam="";
        private string variables = "";

        public QrContentType QrContentType
        {
            get { return qrContentType; }
            set { qrContentType = value; }
        }

        public string Url {
            get { return url; }
            set { url = value; }
        }

        public string OtherParam
        {
            get { return otherParam; }
            set { otherParam = value; }
        }

        public string Variables
        {
            get { return variables; }
            set { variables = value; }
        }
    }
}
